package com.gsit.expenditure.domain;



import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotEmpty;



@Entity
@DiscriminatorValue("TRAVELBILL")
public class TravelBill extends Bill{
	
	@NotEmpty(message="Particulars Required")
	@Column(name = "particulars")
	private String particulars;

	@Min(value=1,message="Should be greater than or equal to 1")
	@Column(name = "distance")
	private Double distance;

	@Min(value=1,message="Should be greater than or equal to 1")
	@Column(name = "days")
	private Integer days;
	
	@NotEmpty(message = "Source Required")
	@Column(name = "source")
	private String source;

	@NotEmpty(message="Destination Required")
	@Column(name = "destination")
	private String destination;

	@Min(value=1)
	@Column(name = "rate")
	private Double rate;

		
	public String getParticulars() {
		return particulars;
	}

	public void setParticulars(String particulars) {
		this.particulars = particulars;
	}

	public Double getDistance() {
		return distance;
	}

	public void setDistance(Double distance) {
		this.distance = distance;
	}

	public Integer getDays() {
		return days;
	}

	public void setDays(Integer days) {
		this.days = days;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public Double getRate() {
		return rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

}
